package com.cftpay.payexperience.usage.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.cftpay.payexperience.R;


/**
 * Created by Administrator on 2016/9/8.
 */
public class ExperienceActivity extends Activity implements View.OnClickListener {

    private TextView mTextViewWap;
    private TextView mTextViewShare;
    private TextView mTextViewRichScan;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_experience);
        findViewById(R.id.tv_share).setOnClickListener(this);
        findViewById(R.id.tv_rich_scan).setOnClickListener(this);
        findViewById(R.id.tv_wap).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        String type = "";
        switch (v.getId()) {
            case R.id.tv_share:
                type = "1";
                break;
            case R.id.tv_rich_scan:
                type = "2";
                break;
            case R.id.tv_wap:
                type = "3";
                break;
        }
        Intent intent = new Intent(ExperienceActivity.this, PayActivity.class);
        intent.putExtra("type", type);
        startActivity(intent);


    }


}

